package cn.modular02.work03;

/**
 * @author ASUS
 * @date 2020/7/21 17:45
 * @description
 */
public class Card {

    private CardType type;//卡类型

    private String cardNum;//卡号

    private String username;//用户名

    private String password;//密码

    private int balance;//账户余额

    private int talkTimeMinute;//通话时长

    private int flux;//流量

    public CardType getType() {
        return type;
    }

    public void setType(CardType type) {
        this.type = type;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getBalance() {
        return balance;
    }

    public void setBalance(int balance) {
        this.balance = balance;
    }

    public int getTalkTimeMinute() {
        return talkTimeMinute;
    }

    public void setTalkTimeMinute(int talkTimeMinute) {
        this.talkTimeMinute = talkTimeMinute;
    }

    public int getFlux() {
        return flux;
    }

    public void setFlux(int flux) {
        this.flux = flux;
    }

    /**
     * 显示（卡号 + 用户名 + 当前余额）
     */
    public void Show() {
        System.out.println("卡号：" + cardNum);
        System.out.println("用户名:" + username);
        System.out.println("当前余额:" + talkTimeMinute);
    }
}
